package nabaixin.com.bean;

import android.bluetooth.BluetoothDevice;

public class BtDevice {

	private BluetoothDevice device;
	private long discover_time;
	
	public BtDevice(){}
	
	public BtDevice(BluetoothDevice device, long discover_time) {
		this.device = device;
		this.discover_time = discover_time;
	}
	
	public BluetoothDevice getDevice() {
		return device;
	}

	public void setDevice(BluetoothDevice device) {
		this.device = device;
	}

	public long getDiscover_time() {
		return discover_time;
	}

	public void setDiscover_time(long discover_time) {
		this.discover_time = discover_time;
	}

	@Override
	public boolean equals(Object obj) {
		BtDevice o = (BtDevice)obj;
		return o.getDevice().getAddress().equalsIgnoreCase(this.getDevice().getAddress());
	}
}
